package com.vm.osm.business.entity;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 逻辑设备
 *
 * @author Xuerong Xue
 */
@Data
public class OsmLogicEqu implements Serializable {
    private String id;

    private String logic_no_id;

    private String equ_code;

    private Byte equ_type;

    private String equ_type_id;

    private String equ_name;

    private String resource_code;

    private String resource_name;

    private String brand;

    private String model;

    private String spec;

    private String manufactor_id;

    private String measure_unit;

    private String project_id;

    private String sn;

    private Date production_date;

    private Date purchase_date;

    private Date maintenance_period;

    private Integer use_limit;

    private String original_value;

    private BigDecimal scrap_ratio;

    private String service_provider_id;

    private String supplier_id;

    private String img_url;

    private String address;

    private String attachment;

    private String remark;

    private Byte belong_type;

    private String belonger_id;

    private Byte create_mode;

    private Byte is_delete;

    private String creator_id;

    private String enterprise_id;

    private Date create_time;

    private Date modified_time;


    /**
     * 归属类型
     *
     * @author Xuerong Xue
     */
    public static final class BelongType {
        public static final byte SELF = (byte) 1;  // 否
        public static final byte CUSTOMER = (byte) 2;  // 是
    }

    /**
     * 是否删除
     *
     * @author Xuerong Xue
     */
    public static final class IsDelete {
        public static final byte NO = (byte) 0;  // 否
        public static final byte YES = (byte) 1;  // 是
    }

    /**
     * 创建方式
     *
     * @author Xuerong Xue
     */
    public static final class CreateMode {
        public static final byte ADD = (byte) 1;  // 新增
        public static final byte IMPORT = (byte) 2;  // 导入
    }
}